from selenium.webdriver.common.by import By

from base.base import Base

class Page(Base):
    frame_loc=(By.XPATH,'/html/body/div[3]/div[3]/div[1]/div/div[3]/div[1]/div[2]/iframe')
    def frame(self):
        self.window_frame(self.frame_loc)

    username_loc=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[1]/div[2]/input')
    def username(self):
        self.send_keys(self.username_loc,'17631289665')
    password_loc=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[3]/div[2]/input[2]')
    def password(self):
        self.send_keys(self.password_loc,'Weimx1026')

    dologin_loc=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[8]/a')
    def dologin(self):
        self.click(self.dologin_loc)